package com.zfx.client;

import com.zfx.util.JsonObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;

/**
 * @description: feign
 * @author: zfx
 */
@FeignClient(value = "CMS")
public interface ITemplateClient {

    @RequestMapping("/template/findById")
    JsonObject findById(@RequestParam(name = "modeId") int modeId);

    @RequestMapping("/template/clientList")
    JsonObject getList(@RequestBody String jsonData) throws IOException;
}
